@layout("/common/_container.html"){
<style>.bootstrap-select.btn-group.show-tick .dropdown-menu li a span.text{  margin-right: 0;  }</style>
<div class="ibox float-e-margins">
    <div class="ibox-content" style="padding: 0;">
        <div style="display: none">
            <input type="hidden" id="oneChannelValue" value="">
            <input type="hidden" id="twoChannelValue" value="">
            <input type="hidden" id="thrChannelValue" value="">
            <input type="hidden" id="oneMediumValue" value="">
            <input type="hidden" id="twoMediumValue" value="">
            <input type="hidden" id="thrMediumValue" value="">
            <input type="hidden" id="reach" value="">
            <input type="hidden" id="sttleAccountsTime" value="${sttleAccountsTime}">
            <input type="hidden" id="outpatientNameValue" value="${outpatientNameValue}">
            <input type="hidden" id="menuName" value="结账退款-业绩明细">
        </div>
        <div class="numStatistics">
            <div style="display: none"></div>
            <div><span>全院业绩</span>（<span id="hospitalPerformance">0</span>）</div>
            <div><span>科室业绩</span>（<span id="sectionPerformance">0</span>）</div>
            <div><span>人数</span>（<span id="number">0</span>）</div>
            <div onclick="displayHiding('PerformanceTable')" id="zoom">
                <img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/open.png" alt="">
                <img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/shrink.png" alt="" style="display: none">
                <span>条件展开</span>
            </div>
        </div>
        <div class="divFlex" style="display: none">
            <div class="flex_one">
                <div>门诊</div>
                <div>新老客</div>
                <div>科室</div>
                <div>交易类型</div>
                <div>一级渠道</div>
                <div>二级渠道</div>
                <div>三级渠道</div>
                <div>一级媒介</div>
                <div>二级媒介</div>
                <div>三级媒介</div>
                <div>TC</div>
                <div>网电咨询师</div>
            </div>
            <div class="flex_two">
                <div>
                    <select id="outpatientName" name="outpatientName" onchange="PerformanceTable.store()" >
                        <option value="">全部</option>
                        @for(str in outpatientManagementList){
                        <option value="${str.simplename}">${str.simplename}</option>
                        @}
                    </select>
                </div>
                <div>
                    <select id="customerStatus" name="customerStatus" onchange="PerformanceTable.search()" class="selectpicker" multiple title="请选择">
                        <option value="新客首次">新客首次</option>
                        <option value="新客多次">新客多次</option>
                        <option value="新客">新客</option>
                        <option value="老客">老客</option>
                    </select>
                </div>
                <div>
                    <select id="treatmentUnit" name="treatmentUnit" onchange="PerformanceTable.search()" class="selectpicker" multiple title="请选择">
                        @for(str in departmentList){
                        <option value="${str.department}">${str.department}</option>
                        @}
                    </select>
                </div>
                <div>
                    <select id="isDoName" name="customerStatus" onchange="PerformanceTable.search()" >
                        <option value="">请选择</option>
                        <option value="5">消费</option>
                        <option value="3">还欠款</option>
                        <option value="4">退款</option>
                        <option value="9">储值变动</option>
                        <option value="10">种植牙俱乐部缴费</option>
                    </select>
                </div>
                <div>
                    <select id="oneChannel" name="oneChannel" class="selectpicker" multiple title="请选择" ></select>
                </div>
                <div>
                    <select id="twoChannel" name="twoChannel" class="selectpicker" multiple title="请选择"></select>
                </div>
                <div>
                    <select id="thrChannel" name="thrChannel" class="selectpicker" multiple title="请选择"></select>
                </div>
                <div>
                    <select id="oneMedium" name="oneMedium" class="selectpicker" multiple title="请选择" ></select>
                </div>
                <div>
                    <select id="twoMedium" name="twoMedium" class="selectpicker" multiple title="请选择"></select>
                </div>
                <div>
                    <select id="thrMedium" name="thrMedium" class="selectpicker" multiple title="请选择"></select>
                </div>
                <div>
                    <select id="tcName" name="tcName" onchange="PerformanceTable.search()" class="selectpicker" multiple title="请选择">
                        @for(str in tcList){
                        <option value="${str.tcName}">${str.tcName}</option>
                        @}
                    </select>
                </div>
                <div>
                    <select id="scarchiving" name="scarchiving" onchange="PerformanceTable.search()" class="selectpicker" multiple title="请选择">
                        @for(str in archivingList){
                        <option value="${str.account}">${str.account}</option>
                        @}
                    </select>
                </div>
            </div>
        </div>
        <div class="timeButton">
            <div class="timeBox" >
                <div>
                    <span>结账时间</span>
                    <input type="text" autocomplete="off" id="startRechargeTime" onclick="laydate({istiem:true,format:'YYYY-MM-DD hh:mm:ss',choose:checkDate})">
                    <span>-</span>
                    <input type="text" autocomplete="off" id="endRechargeTime" onclick="laydate({istiem:true,format:'YYYY-MM-DD hh:mm:ss',choose:checkDate})">
                </div>
                <div>
                    <button type="button" class="btn actionClick" onclick="PerformanceTable.naturalDaySearch()">自然时间</button>
                    <button type="button" class="btn" onclick="PerformanceTable.settleAccounts()">扎帐时间</button>
                </div>
            </div>
            <div class="buttonBox" >
                <div>
                    <button type="button" class="btn" onclick="PerformanceTable.resetSearch()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/empty.png"><span>重置</span></button>
                    @if(shiro.hasPermission("/recharge/export")){
                    <button type="button" class="btn" onclick="$('#PerformanceTable').tableExport({ type: 'excel', escape: 'false' })">
                        <img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/export.png"><span>导出</span></button>
                    <button type="button" class="btn" onclick="PerformanceTable.performanceTableExport()"><span>导出</span></button>
                    @}
                </div>
            </div>
        </div>
        <div class="tableBox">
            <#table id="PerformanceTable"/>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/balance/performance.js?v=20200718"></script>
<script src="${ctxPath}/static/modular/tcCenter/consultant/doctorTcSearchContents.js?v=20200718"></script>
<script src="${ctxPath}/static/js/common/initChannel.js?v=20200718"></script>
<script src="${ctxPath}/static/js/common/jsChannels.js?v=20200718"></script>
<script src="${ctxPath}/static/js/common/initMediums.js?v=20200718"></script>
<script src="${ctxPath}/static/js/common/jsMediums.js?v=20200718"></script>
@}